#ifndef		Configuration__SerializerBool_h
#define		Configuration__SerializerBool_h

#include	<string>
#include	<sstream>

// Specializuotas konverteris bool tipui.
template<>
struct Serializer< bool >
{
	static void ValueToString(bool value, std::string & string)
	{
		if(value)
		{
			string = "true";
		}
		else
		{
			string = "false";
		}
	}
	static void StringToValue(bool & value, const std::string & string)
	{
		if(string == "true")
		{
			value = true;
			return;
		}
		else if(string == "false")
		{
			value = false;
		}
	}
};

#endif	//	Configuration__SerializerBool_h

